package com.study.run;

import com.study.config.IocConfig;
import com.study.entity.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Kevin Liu
 * @date 2020/8/18 上午10:24
 */
public class IocApplication {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(IocConfig.class);
		final User user = applicationContext.getBean(User.class);
		System.out.println(user);
	}
}
